package com.ruoyi.shop.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.shop.api.domain.Shop;
import com.ruoyi.shop.api.factory.RemoteShopFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务
 *
 * @author ruoyi
 */

@FeignClient(value = ServiceNameConstants.SHOP_SERVICE, fallbackFactory = RemoteShopFallbackFactory.class)
@Component
public interface RemoteShopService {
    /**
     * 查询商家管理列表
     */
    @GetMapping("/list")
    public TableDataInfo list(Shop shop);

    /**
     * 获取商家管理详细信息
     */
    @GetMapping(value = "/shopDetails/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);


}
